﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="AvancedeOrden.aspx.cs" Inherits="AvancedeOrden" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 
    

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

            <form id="BusquedaC" runat="server">
            
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>

      

        	<h1> Avance Ordenes de Servicio</h1>
                <table style="width: 50%">
                    <tr>
                        <td>
                            Buscar</td>
                        <td>
                            <asp:TextBox ID="CampoBuscar" runat="server" Height="20px" Width="250px"></asp:TextBox>
                            *<span style="font-size: x-small; color: #333333"> No. Orden, Empresa o Cliente</span></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td style="text-align: right">
                        <asp:UpdatePanel ID="Upd1" runat="server">
                            <ContentTemplate>
                            <asp:Button ID="btnBuscar" runat="server" style="text-align: right" 
                                Text="Buscar" onclick="btnBuscar_Click" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            <div class="pages_thumb">
              <table >
      
                <tr>
                    <td> &nbsp;</td>
                </tr>
                <tr>
                <td>&nbsp;&nbsp;&nbsp; &nbsp;</td>
               </tr>
               
                </table>
              <table width="100%">
              
           	  <tr>
              	<td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="IdOrden" AutoGenerateColumns="False"
                            GridLines="None"  
                            
                        onpageindexchanging="grdDatos_PageIndexChanging" 
                                    onselectedindexchanged="grdDatos_SelectedIndexChanged" CellPadding="4" 
                                    ForeColor="#333333">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" />
                            </asp:CommandField>
                            <asp:BoundField 
                             HeaderText="Folio" 
                             DataField = "Folio"
                             SortExpression ="Folio" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="No. " 
                             DataField="IdOrden"
                             SortExpression="IdOrden"
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Empresa" 
                             DataField="Empresa"
                             SortExpression="Empresa"
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Vacantes" 
                             DataField="TotalVacantes"
                             SortExpression="TotalVacantes"
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="30px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="V. por cubrir:" 
                             DataField="VacantesPorCubrir"
                             SortExpression="VacantesPorCubrir"
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="30px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Preseleccion" 
                             DataField="Preseleccionados"
                             SortExpression="Preseleccionados"
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Fecha Ingreso" 
                             DataField="FechaEstimadaInicio"
                             SortExpression="FechaEstimadaInicio"
                             ControlStyle-Width="30px" DataFormatString="{0:yyyy-MM-dd}" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Fecha límite"
                            DataField="FechaEstimadaTerminacion"
                            SortExpression="FechaEstimadaTerminacion" DataFormatString="{0:yyyy-MM-dd}"
                            >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Asignado a:"
                            DataField="Oficina"
                            SortExpression="Oficina"
                            >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Puesto:"
                            DataField="Puesto"
                            SortExpression="Puesto"
                            >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                
               </tr>
            </table>
            <table>
            </table>
            </div>
            

            </form> 
</asp:Content>

